﻿<UserControl x:Class="AlgorithmBox.FlowCharts.FlowChartElement"
						 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
						 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
						 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
						 xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
						 mc:Ignorable="d"
						 d:DesignHeight="100"
						 d:DesignWidth="200"
						 MinWidth="100"
						 SizeChanged="UserControl_SizeChanged"
						 MouseDoubleClick="UserControl_MouseDoubleClick">
	<Grid>
		<Border x:Name="FlowBorder"
						Background="White"
						BorderBrush="{StaticResource FlowBorderBrush}"
						BorderThickness="{StaticResource FlowBorderThickness}">
		</Border>

		<TextBlock x:Name="ContentBlock"
							 Foreground="Black"
							 HorizontalAlignment="Center"
							 VerticalAlignment="Center"
							 FontWeight="Bold" />
		<TextBox x:Name="ContentChanger"
						 HorizontalAlignment="Stretch"
						 VerticalAlignment="Center"
						 Margin="15"
						 Visibility="Hidden"
						 TextAlignment="Left"
						 LostFocus="ContentChanger_LostFocus"
						 KeyDown="ContentChanger_KeyDown" />
	</Grid>
</UserControl>
